<?php

$cars = array("Suzhen","Wufenglan","Zengxuan");
echo $cars[2];
$cars[1] = "Audi";

echo "<pre>";
print_r($cars);
echo count($cars);

echo"<hr/>";
echo"foreach::::.<br/>";
foreach ($cars as $value){
    echo $value."<br/>";

}

$message = array(
    'pic' => "images/2.jpg",
    'name' => "avatar",
    'content' => '天天好心情11111<span><来自火星"女侠"的留言)</span>',
    'sex' => 'male'
);

foreach ($message as $key => $value) {
    echo $key. "=>". $value."<br>";
}
?>